<!-- 
 *  Copyright [2014] UW-Parkside
 * Authors: Jasmine Griffiths, Matthew Zygowicz, Armando Narvaez
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
*/
-->

<!-- 'login.php', The view for the login page-->
    <body>
   <?php
      if (strlen($errMsg) > 0) {//Display an error message if there is one
          print "<div class='alert-box error'>";
          print "<strong>Error!</strong>";
          print "<p>";
          print $errMsg;
          print "</p>"; 
          print "</div>";
      }
      if (isset($successMsg) && strlen($successMsg) > 0){//Display a success message if there is one
          print "<div class='alert-box success'>";
          print "<strong>Success!</strong>";
          print "<p>";
          print $successMsg;
          print "</p>"; 
          print "</div>";
      }
      ?>
   <div id="containerMinDoNotReplace">
      <div id="mainContentNoSidebarDoNotReplace">
         <div>
            <p><img src="/resources/img/logoBanner.png" alt="KAT Banner"/></p><!-- Banner -->
            <hr />
         </div>
		 <!-- --------------Login Section  --------------->
         <div>
            <form action="/index.php/kat/login" class="loginForm" method="POST">
               <fieldset>
                  <legend>Login</legend>
                <!--Username--><p><label class="field" for="username">Username</label><input class="" name="username" type="text" placeholder="Please enter your username" required="" /></p>
                <!--Password--><p><label class="field" for="password">Password</label><input class="" name="password" type="password" placeholder="Password" required="" /></p>
                <!--Login Button--><p><input class="right blue button" value="Login" name="login" type="submit"></p>
               </fieldset>
            </form>
         </div>
		 <!-- --------------End Login Section  ----------->
      </div>
   </div>
</body>
